<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<link rel="stylesheet" href="">
</head>
<body>
	<script>
		console.dir(Array);

		//实例
		console.log([],new Array());
		console.log([].constructor == Array);
		console.log( [] instanceof Array);

		//继承
		const arr = [1,2];
		arr.push(3),console.log(arr);

		//gouzao 
		console.log(Array.name);
		console.log(Array.of(5));

		console.log([].name);
		//console.log([].of(5));
		//
		console.log(arr.concat(['a','b']));
		//console.log(Array.concat());
		console.log(Array.prototype.concat(['a','b']));

		//prototype
		console.log(Array.prototype);
		// Array.prototype.push = null;
		// arr.push('a');
		
		//__proto__属性
		const str = new String('kaivon');
		console.log(String.prototype);
		console.log(str.__proto__);
		console.log(String.prototype === str.__proto__);
		console.log(str.constructor == String);
		console.log(str.constructor.prototype === String.prototype);

		console.dir(String);
		console.log(String.__proto__);
		console.log(String.__proto__.__proto__ === Object.prototype);

		
	</script>
</body>
</html>